home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2142 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.7 KB  |  59 lines

  1. Newsgroups: hku.open-forum,hku.cc.forum,hk.comp.pc,comp.lang.c++,comp.lang.pascal.misc
  2. Path: hkusuc.hku.hk!hkusua!kong
  3. From: kong@hkusua.hku.hk (Kong Kang Chung)
  4. Subject: Pascal and C (Was: Is Pascal worth learning )
  5. X-Nntp-Posting-Host: hkusua.hku.hk
  6. Message-ID: <DL98xy.Byn.0.-s@hkusuc.hku.hk>
  7. Sender: usenet@hkusuc.hku.hk
  8. Organization: The University of Hong Kong
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. References: <SDLEE.96Jan15161338@champion.cs.hku.hk>
  11. Date: Tue, 16 Jan 1996 03:41:58 GMT
  12.  
  13. : Some people do not consider 'breaking' in loops a good style of writing
  14. : structured programs.  In fact, if you HAVE TO do so, you can do that
  15. : with GOTO in pascal.  However, as GOTO is discouraged in structured
  16. : programming, breaks are also not encouraged.
  17.                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18. I am pretty surprised that breaks are not encouraged. To me they sound
  19. very logical in many many cases, and I always thought using them is a 
  20. clear and clean programming practice. GOTO is different because there
  21. could be no simple reason why you have to jump to another part of your
  22. program. If I was given a piece of code full of GOTOs I will have tough
  23. time trying to figure out what each GOTO will jump to and why. But for 
  24. these are always obvious and self-explanatory. IMHO the work-around
  25. of breaks (i.e. setting a flag to be checked at the loop condition) is
  26. more messy. You will have to declare the flag, remember to initialize 
  27. it, and have the variable checked at every loop. 
  28.  
  29. :
  30.  
  31. :     >>    For the original poster, so far I have only seen one
  32. :     >> employer in Hong Kong that specifically requires Pascal. It's
  33. :     >> one of those news agencies. And believe it or not, they use
  34. :     >> VAX!!
  35. : There are even more jobs for dBase, Clipper, FoxPro programmers.
  36. : So, you should persuade all people to learn them, rather than Pascal
  37. : or C.
  38. :
  39. Sorry? I did not persuade any person to learn anything. I was just
  40. trying to say "Pascal is not very powerful and not many jobs require it."
  41. I have seen more than (1000?) programmer employment ads in HK, the one I
  42. mentioned is the only one that states specifically they require
  43. Pascal. Even in the U.S. I haven't met any employers who consider Pascal
  44. programming an useful skill. BTW, if you don't know already, the VAX line of 
  45. machine has reached its dead end. The last new VAX model was introduced
  46. like two years ? ago. 
  47.  
  48. And... since the original poster is a econ. major, I will suggest him
  49. try doing better in his major instead of dipping into computers. Computers
  50. are great for fun, but in HK,
  51. he can make more $$ and might have a brighter future if he is in the 
  52. finance sector. (sh.. don't tell my boss I said this!!!)
  53.  
  54.  
  55. -- All opinions are mine. They have nothing to do with my employer. 
  56.